package com.adinnet.admin.system.service;

import com.adinnet.admin.system.model.vo.SysUserVo;
import com.adinnet.admin.system.model.SysUser;
import com.adinnet.core.JsonResult;
import com.adinnet.core.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author sunjianbo
 * @since 2019-05-17
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getByUsername(String username);

    PageResult<SysUserVo> listUser(Integer page, Integer limit, String searchKey, String searchValue,Integer roleId);

    boolean add(SysUser user, List<Integer> roleIds);

    boolean update(SysUser user, List<Integer> roleIds);

    List<SysUser> getListByOrganizationId(Integer organizationId);
}
